/*    */ package handling.world;
/*    */ 
/*    */ import client.MapleCoolDownValueHolder;
/*    */ import client.MapleDiseaseValueHolder;
/*    */ import java.io.Serializable;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ import java.util.concurrent.ConcurrentHashMap;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class PlayerBuffStorage
/*    */   implements Serializable
/*    */ {
/*    */   private static final long serialVersionUID = -5428338713000883808L;
/* 18 */   private static final Map<Integer, List<PlayerBuffValueHolder>> buffs = new ConcurrentHashMap<>();
/* 19 */   private static final Map<Integer, List<MapleCoolDownValueHolder>> coolDowns = new ConcurrentHashMap<>();
/* 20 */   private static final Map<Integer, List<MapleDiseaseValueHolder>> diseases = new ConcurrentHashMap<>();
/*    */   
/*    */   public static void addBuffsToStorage(int chrid, List<PlayerBuffValueHolder> toStore) {
/* 23 */     buffs.put(Integer.valueOf(chrid), toStore);
/*    */   }
/*    */   
/*    */   public static void addCooldownsToStorage(int chrid, List<MapleCoolDownValueHolder> toStore) {
/* 27 */     coolDowns.put(Integer.valueOf(chrid), toStore);
/*    */   }
/*    */   
/*    */   public static void addDiseaseToStorage(int chrid, List<MapleDiseaseValueHolder> toStore) {
/* 31 */     diseases.put(Integer.valueOf(chrid), toStore);
/*    */   }
/*    */   
/*    */   public static List<PlayerBuffValueHolder> getBuffsFromStorage(int chrid) {
/* 35 */     return buffs.remove(Integer.valueOf(chrid));
/*    */   }
/*    */   
/*    */   public static List<MapleCoolDownValueHolder> getCooldownsFromStorage(int chrid) {
/* 39 */     return coolDowns.remove(Integer.valueOf(chrid));
/*    */   }
/*    */   
/*    */   public static List<MapleDiseaseValueHolder> getDiseaseFromStorage(int chrid) {
/* 43 */     return diseases.remove(Integer.valueOf(chrid));
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\handling\world\PlayerBuffStorage.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */